# Version 1.0
# 基础镜像
FROM python:3.6

COPY . /admin-app

WORKDIR /admin-app

# update pip and deps
RUN pip install pip -U -i https://mirrors.aliyun.com/pypi/simple/ && \
    pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
    chmod +x /admin-app/start_server.sh

ENTRYPOINT [ "/bin/bash", "-c", "/admin-app/start_server.sh" ]
